package com.autcar.training.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.pojo
 * @ClassName: Order
 * @Author: YHHHH
 * @Description: 订单实体类
 * @Date: 2020/8/27 10:09
 * @Version: 1.0
 */
@Data
@TableName("g_order")
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;

    /*

   主键订单ID
     */
    @TableField(value = "id")
    private int id;

    /*
    客户的id
     */
    @TableField(value = "cid")
    private Integer cid;

    /*
    客户的名字
     */
    private String customerName;

    /*
    商品的价格
     */
    @TableField(value = "money")
    private Integer money;

    /*
    工作人员id
     */
    @TableField(value = "wid")
    private Integer wid;

    /*
    工作人员的名字
     */
    private String workerName;

    /*
    物品id
     */
    @TableField(value = "gid")
    private Integer gid;

    /*
    物品的名字
     */
    private String goodsName;

    /*
    下单时间
     */
    @TableField(value = "time")
    private String time;
    /*
    状态码  0为交易未成功  1为交易成功
     */
    @TableField(value = "state")
    private Integer state;

    private Integer score;

    /**
     * 客户评价
     */
    private String mark;

}

